export function isImageUrl(url: string) {
  if (!url) return false
  return /\.(png|jpe?g|gif|bmp|webp|svg)$/i.test(url)
}

export function isVideoUrl(url) {
  if (!url) return false
  return /\.(mp4|mov|avi|mkv|flv|wmv|webm|m4v)$/i.test(url)
}